package com.atguigu.eduservice.client;

import com.atguigu.commonutils.R;
import org.springframework.stereotype.Component;

import java.util.List;

//当服务熔断hystrix开启时 ，就会执行以下方法
@Component
public class VodFileDegradeFeignClient implements VodClient {

    @Override
    public R deleteAliyunVideo(String id) {
        return R.error().message("time out");
    }

    @Override
    public R deleteAliyunVideoBatch(List<String> videoAliyunSourseIdsList) {
        return R.error().message("time out");
    }
}
